home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Code
/
Chapter Code.exe
/
Chapter11
/
scantheskies.s3d
< prev
next >
Wrap
Text File
|
2000-07-24
|
16KB
|
408 lines
DEF DISPLAY ScanTheSkiesDisplay {}
DEF GLOBE Transform {
translation 0 0 0
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 0 .5 .3
}
}
geometry IndexedLineSet {
lineWidth 1
coord Coordinate
{ point [
0 50 0, 0 46.19 -19.13, -7.322 46.19 -17.68, -13.53 46.19 -13.53,
-17.68 46.19 -7.322, -19.13 46.19 0, -17.68 46.19 7.322,
-13.53 46.19 13.53, -7.322 46.19 17.68, 0 46.19 19.13,
7.322 46.19 17.68, 13.53 46.19 13.53, 17.68 46.19 7.322,
19.13 46.19 0, 17.68 46.19 -7.322, 13.53 46.19 -13.53,
7.322 46.19 -17.68, 0 35.36 -35.36, -13.53 35.36 -32.66,
-25 35.36 -25, -32.66 35.36 -13.53, -35.36 35.36 0,
-32.66 35.36 13.53, -25 35.36 25, -13.53 35.36 32.66,
0 35.36 35.36, 13.53 35.36 32.66, 25 35.36 25, 32.66 35.36 13.53,
35.36 35.36 0, 32.66 35.36 -13.53, 25 35.36 -25, 13.53 35.36 -32.66,
0 19.13 -46.19, -17.68 19.13 -42.68, -32.66 19.13 -32.66,
-42.68 19.13 -17.68, -46.19 19.13 0, -42.68 19.13 17.68,
-32.66 19.13 32.66, -17.68 19.13 42.68, 0 19.13 46.19,
17.68 19.13 42.68, 32.66 19.13 32.66, 42.68 19.13 17.68,
46.19 19.13 0, 42.68 19.13 -17.68, 32.66 19.13 -32.66,
17.68 19.13 -42.68, 0 0 -50, -19.13 0 -46.19, -35.36 0 -35.36,
-46.19 0 -19.13, -50 0 0, -46.19 0 19.13, -35.36 0 35.36,
-19.13 0 46.19, 0 0 50, 19.13 0 46.19, 35.36 0 35.36,
46.19 0 19.13, 50 0 0, 46.19 0 -19.13, 35.36 0 -35.36,
19.13 0 -46.19, 0 -19.13 -46.19, -17.68 -19.13 -42.68,
-32.66 -19.13 -32.66, -42.68 -19.13 -17.68, -46.19 -19.13 0,
-42.68 -19.13 17.68, -32.66 -19.13 32.66, -17.68 -19.13 42.68,
0 -19.13 46.19, 17.68 -19.13 42.68, 32.66 -19.13 32.66,
42.68 -19.13 17.68, 46.19 -19.13 0, 42.68 -19.13 -17.68,
32.66 -19.13 -32.66, 17.68 -19.13 -42.68, 0 -35.36 -35.36,
-13.53 -35.36 -32.66, -25 -35.36 -25, -32.66 -35.36 -13.53,
-35.36 -35.36 0, -32.66 -35.36 13.53, -25 -35.36 25,
-13.53 -35.36 32.66, 0 -35.36 35.36, 13.53 -35.36 32.66,
25 -35.36 25, 32.66 -35.36 13.53, 35.36 -35.36 0, 32.66 -35.36 -13.53,
25 -35.36 -25, 13.53 -35.36 -32.66, 0 -46.19 -19.13,
-7.322 -46.19 -17.68, -13.53 -46.19 -13.53, -17.68 -46.19 -7.322,
-19.13 -46.19 0, -17.68 -46.19 7.322, -13.53 -46.19 13.53,
-7.322 -46.19 17.68, 0 -46.19 19.13, 7.322 -46.19 17.68,
13.53 -46.19 13.53, 17.68 -46.19 7.322, 19.13 -46.19 0,
17.68 -46.19 -7.322, 13.53 -46.19 -13.53, 7.322 -46.19 -17.68,
0 -50 0]
}
coordIndex [
0, 1, 2, -1, 0, 2, 3, -1, 0, 3, 4, -1, 0, 4, 5, -1, 0,
5, 6, -1, 0, 6, 7, -1, 0, 7, 8, -1, 0, 8, 9, -1, 0,
9, 10, -1, 0, 10, 11, -1, 0, 11, 12, -1, 0, 12, 13,
-1, 0, 13, 14, -1, 0, 14, 15, -1, 0, 15, 16, -1, 0,
16, 1, -1, 1, 17, 18, 2, -1, 2, 18, 19, 3, -1, 3, 19,
20, 4, -1, 4, 20, 21, 5, -1, 5, 21, 22, 6, -1, 6, 22,
23, 7, -1, 7, 23, 24, 8, -1, 8, 24, 25, 9, -1, 9, 25,
26, 10, -1, 10, 26, 27, 11, -1, 11, 27, 28, 12, -1,
12, 28, 29, 13, -1, 13, 29, 30, 14, -1, 14, 30, 31,
15, -1, 15, 31, 32, 16, -1, 16, 32, 17, 1, -1, 17,
33, 34, 18, -1, 18, 34, 35, 19, -1, 19, 35, 36, 20,
-1, 20, 36, 37, 21, -1, 21, 37, 38, 22, -1, 22, 38,
39, 23, -1, 23, 39, 40, 24, -1, 24, 40, 41, 25, -1,
25, 41, 42, 26, -1, 26, 42, 43, 27, -1, 27, 43, 44,
28, -1, 28, 44, 45, 29, -1, 29, 45, 46, 30, -1, 30,
46, 47, 31, -1, 31, 47, 48, 32, -1, 32, 48, 33, 17,
-1, 33, 49, 50, 34, -1, 34, 50, 51, 35, -1, 35, 51,
52, 36, -1, 36, 52, 53, 37, -1, 37, 53, 54, 38, -1,
38, 54, 55, 39, -1, 39, 55, 56, 40, -1, 40, 56, 57,
41, -1, 41, 57, 58, 42, -1, 42, 58, 59, 43, -1, 43,
59, 60, 44, -1, 44, 60, 61, 45, -1, 45, 61, 62, 46,
-1, 46, 62, 63, 47, -1, 47, 63, 64, 48, -1, 48, 64,
49, 33, -1, 49, 65, 66, 50, -1, 50, 66, 67, 51, -1,
51, 67, 68, 52, -1, 52, 68, 69, 53, -1, 53, 69, 70,
54, -1, 54, 70, 71, 55, -1, 55, 71, 72, 56, -1, 56,
72, 73, 57, -1, 57, 73, 74, 58, -1, 58, 74, 75, 59,
-1, 59, 75, 76, 60, -1, 60, 76, 77, 61, -1, 61, 77,
78, 62, -1, 62, 78, 79, 63, -1, 63, 79, 80, 64, -1,
64, 80, 65, 49, -1, 65, 81, 82, 66, -1, 66, 82, 83,
67, -1, 67, 83, 84, 68, -1, 68, 84, 85, 69, -1, 69,
85, 86, 70, -1, 70, 86, 87, 71, -1, 71, 87, 88, 72,
-1, 72, 88, 89, 73, -1, 73, 89, 90, 74, -1, 74, 90,
91, 75, -1, 75, 91, 92, 76, -1, 76, 92, 93, 77, -1,
77, 93, 94, 78, -1, 78, 94, 95, 79, -1, 79, 95, 96,
80, -1, 80, 96, 81, 65, -1, 81, 97, 98, 82, -1, 82,
98, 99, 83, -1, 83, 99, 100, 84, -1, 84, 100, 101,
85, -1, 85, 101, 102, 86, -1, 86, 102, 103, 87, -1,
87, 103, 104, 88, -1, 88, 104, 105, 89, -1, 89, 105,
106, 90, -1, 90, 106, 107, 91, -1, 91, 107, 108, 92,
-1, 92, 108, 109, 93, -1, 93, 109, 110, 94, -1, 94,
110, 111, 95, -1, 95, 111, 112, 96, -1, 96, 112, 97,
81, -1, 113, 98, 97, -1, 113, 99, 98, -1, 113, 100,
99, -1, 113, 101, 100, -1, 113, 102, 101, -1, 113,
103, 102, -1, 113, 104, 103, -1, 113, 105, 104, -1,
113, 106, 105, -1, 113, 107, 106, -1, 113, 108, 107,
-1, 113, 109, 108, -1, 113, 110, 109, -1, 113, 111,
110, -1, 113, 112, 111, -1, 113, 97, 112, -1]
}
}
]
}
DEF GUN Transform {
translation 0 0 0
children [
DEF Camera01 Viewpoint{
position 0 0 0
orientation 0 0 0 0
fieldOfView .8
description "Camera01"
}
DEF POINT Transform {
translation 0 0 0
children [
Shape {
appearance [
Appearance {
material Material {
emissiveColor 0 0 1
}
}
]
geometry PointSet {
coord Coordinate {
point [
0 0 -10
]
}
pointSize 5
}
}
]
}
]
}
DEF PARENT Transform {
translation 0 0 0
children [
DEF CHILD Transform {
translation 0 0 0
children [
Transform {
children [
Shape {
appearance [
MultiAppearance {
material Material {
diffuseColor 1 0 0.02353
}
}
]
geometry MultiMesh {
defaultFlatShaded FALSE
coord DEF CHILD-COORD Coordinate {
point [
0 5 0 0 3.536 -3.536 -2.5 3.536 -2.5 -3.536 3.536 0 -2.5 3.536 2.5 0 3.536 3.536 2.5 3.536 2.5
3.536 3.536 0 2.5 3.536 -2.5 0 0 -5 -3.536 0 -3.536 -5 0 0 -3.536 0 3.536 0 0 5 3.536 0 3.536
5 0 0 3.536 0 -3.536 0 -3.536 -3.536 -2.5 -3.536 -2.5 -3.536 -3.536 0 -2.5 -3.536 2.5
0 -3.536 3.536 2.5 -3.536 2.5 3.536 -3.536 0 2.5 -3.536 -2.5 0 -5 0
]
}
coordIndex [
0 1 2 -1 0 2 3 -1 0 3 4 -1 0 4 5 -1 0 5 6 -1 0 6 7 -1 0 7 8 -1 0 8 1 -1 1 9 10 -1
1 10 2 -1 2 10 11 -1 2 11 3 -1 3 11 12 -1 3 12 4 -1 4 12 13 -1 4 13 5 -1 5 13 14 -1
5 14 6 -1 6 14 15 -1 6 15 7 -1 7 15 16 -1 7 16 8 -1 8 16 9 -1 8 9 1 -1 9 17 18 -1
9 18 10 -1 10 18 19 -1 10 19 11 -1 11 19 20 -1 11 20 12 -1 12 20 21 -1 12 21 13 -1
13 21 22 -1 13 22 14 -1 14 22 23 -1 14 23 15 -1 15 23 24 -1 15 24 16 -1 16 24 17 -1
16 17 9 -1 25 18 17 -1 25 19 18 -1 25 20 19 -1 25 21 20 -1 25 22 21 -1 25 23 22 -1
25 24 23 -1 25 17 24 -1
]
appearanceIndex [
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1
]
textureMappings [
]
}
}
]
}
]
}
]
}
DEF DETONATOR TimeSensor {
startTime -1
loop FALSE
cycleInterval 2.5
}
DEF EXPLOSION-BEZSCALE-INTERP BezierVecInterpolator {
key [
0 1
]
keyValue [
0 0 0 0.9258 0.9169 -0.9199 1.048 1.051 -1.045 .25 .25 -.25
]
}
DEF COLORSTEP FloatArrayStepInterpolator{
key [0, .25, .50, .95]
keyValue [ 1 0 0, 1 1 0, 0 1 0, 0 0 0 ]
}
DEF EXPLOSION Transform {
translation 0 100 0
scale .01 .01 .01
children [
Shape {
appearance [
Appearance {
material DEF MAT1 Material {
emissiveColor 0 1 0
}
}
]
geometry DEF PS PointSet {
coord DEF GeoSphere01-COORD Coordinate {
point [
0 10 0 8.944 4.472 0 2.764 4.472
-8.507 -7.236 4.472 -5.257 -7.236
4.472 5.257 2.764 4.472 8.507
7.236 -4.472 -5.257 -2.764 -4.472
-8.507 -8.944 -4.472 0 -2.764 -4.472
8.507 7.236 -4.472 5.257 0 -10 0 2.733
9.619 0 5.257 8.507 0 7.382 6.746 0
0.8444 9.619 -2.599 1.625 8.507 -5
2.281 6.746 -7.02 -2.211 9.619 -1.606
-4.253 8.507 -3.09 -5.972 6.746 -4.339
-2.211 9.619 1.606 -4.253 8.507 3.09
-5.972 6.746 4.339 0.8444 9.619 2.599
1.625 8.507 5 2.281 6.746 7.02 8.226
5.057 -2.599 6.882 5.257 -5 5.014 5.057
-7.02 0.07031 5.057 -8.627 -2.629 5.257
-8.09 -5.128 5.057 -6.938 -8.183 5.057
-2.733 -8.507 5.257 0 -8.183 5.057 2.733
-5.128 5.057 6.938 -2.629 5.257 8.09
0.07032 5.057 8.627 5.014 5.057 7.02
6.882 5.257 5 8.226 5.057 2.599 9.593
2.325 -1.606 9.511 0 -3.09 8.705 -2.325
-4.339 1.437 2.325 -9.619 0 0 -10 -1.437
-2.325 -9.619 -8.705 2.325 -4.339 -9.511
0 -3.09 -9.593 -2.325 -1.606 -6.816 2.325 6.938 -5.878
0 8.09 -4.492 -2.325 8.627 4.492 2.325 8.627
5.878 0 8.09 6.816 -2.325 6.938 9.593 2.325 1.606
9.511 0 3.09 8.705 -2.325 4.339 4.492 2.325 -8.627
5.878 0 -8.09 6.816 -2.325 -6.938 -6.816 2.325 -6.938
-5.878 0 -8.09 -4.492 -2.325 -8.627 -8.705 2.325
4.339 -9.511 0 3.09 -9.593 -2.325 1.606 1.437
2.325 9.619 0 0 10 -1.437 -2.325 9.619 5.128 -5.057
-6.938 2.629 -5.257 -8.09 -0.07031 -5.057 -8.627
-5.014 -5.057 -7.02 -6.882 -5.257 -5 -8.226 -5.057
-2.599 -8.226 -5.057 2.599 -6.882 -5.257 5 -5.014
-5.057 7.02 -0.07031 -5.057 8.627 2.629 -5.257 8.09
5.128 -5.057 6.938 8.183 -5.057 2.733 8.507 -5.257 0
8.183 -5.057 -2.733 2.211 -9.619 -1.606 4.253 -8.507
-3.09 5.972 -6.746 -4.339 -0.8444 -9.619 -2.599 -1.625
-8.507 -5 -2.281 -6.746 -7.02 -2.733 -9.619 0 -5.257
-8.507 0 -7.382 -6.746 0 -0.8444 -9.619 2.599 -1.625
-8.507 5 -2.281 -6.746 7.02 2.211 -9.619 1.606 4.253
-8.507 3.09 5.972 -6.746 4.339 3.618 8.944 -2.629
6.179 7.404 -2.647 4.427 7.404 -5.058 -1.382 8.944
-4.253 -0.6079 7.404 -6.694 -3.443 7.404 -5.773
-4.472 8.944 0 -6.554 7.404 -1.49 -6.554 7.404
1.49 -1.382 8.944 4.253 -3.443 7.404 5.773-0.6079
7.404 6.694 3.618 8.944 2.629 4.427 7.404 5.058
6.179 7.404 2.647 10 0 0 9.554 -2.551 1.49 9.554
-2.551 -1.49 3.09 0 -9.511 4.37 -2.551 -8.625
1.535 -2.551 -9.547 -8.09 0 -5.878 -6.853 -2.551
-6.821 -8.605 -2.551 -4.41 -8.09 0 5.878 -8.605
-2.551 4.41 -6.853 -2.551 6.821 3.09 0 9.511 1.535
-2.551 9.547 4.37 -2.551 8.625 8.09 0 -5.878 6.853
2.551 -6.821 8.605 2.551 -4.41 -3.09 0 -9.511
-4.37 2.551 -8.625 -1.535 2.551 -9.547 -10 0
0 -9.554 2.551 1.49 -9.554 2.551 -1.49 -3.09 0
9.511 -1.535 2.551 9.547 -4.37 2.551 8.625 8.09
0 5.878 8.605 2.551 4.41 6.853 2.551 6.821 1.382
-8.944 -4.253 0.6079 -7.404 -6.694 3.443 -7.404
-5.773 -3.618 -8.944 -2.629 -6.179 -7.404 -2.647
-4.427 -7.404 -5.058 -3.618 -8.944 2.629 -4.427
-7.404 5.058 -6.179 -7.404 2.647 1.382 -8.944 4.253
3.443 -7.404 5.773 0.6079 -7.404 6.694 4.472 -8.944
0 6.554 -7.404 -1.49 6.554 -7.404 1.49
]
}
pointSize 2
}
}
]
}
DEF FIREWORKS TimeSensor {
startTime 0
loop TRUE
cycleInterval 2.5
}
DEF COLORINTER ColorInterpolator {
key [0, .25, .50, 1.0]
keyValue [ 1 0 0, 1 1 0, 0 1 0, 1 0 0 ]
}
DEF EXPLOSION2 Transform {
translation 0 0 -50
children [
Shape {
appearance [
Appearance {
material DEF MAT2 Material {
emissiveColor 0 1 0
}
}
]
geometry USE PS PointSet {
}
}
]
}
DEF EXPLOSION3 Transform {
translation 0 50 0
children [
Shape {
appearance [
Appearance {
material USE MAT2 Material {
emissiveColor 0 1 0
}
}
]
geometry USE PS PointSet {
}
}
]
}
DEF EXPLOSION4 Transform {
translation 0 -50 0
children [
Shape {
appearance [
Appearance {
material USE MAT2 Material {
emissiveColor 0 1 0
}
}
]
geometry USE PS PointSet {
}
}
]
}
DEF EXPLOSION5 Transform {
translation -10 0 0
children [
Shape {
appearance [
Appearance {
material USE MAT2 Material {
emissiveColor 0 1 0
}
}
]
geometry USE PS PointSet {
}
}
]
}
ROUTE DETONATOR.fraction_changed TO EXPLOSION-BEZSCALE-INTERP.set_fraction
ROUTE EXPLOSION-BEZSCALE-INTERP.value_changed TO EXPLOSION.set_scale
ROUTE DETONATOR.fraction_changed TO COLORSTEP.set_fraction
ROUTE COLORSTEP.value TO MAT1.emissiveColor
ROUTE FIREWORKS.fraction_changed TO EXPLOSION-BEZSCALE-INTERP.set_fraction
ROUTE EXPLOSION-BEZSCALE-INTERP.value_changed TO EXPLOSION2.set_scale
ROUTE EXPLOSION-BEZSCALE-INTERP.value_changed TO EXPLOSION3.set_scale
ROUTE EXPLOSION-BEZSCALE-INTERP.value_changed TO EXPLOSION4.set_scale
ROUTE EXPLOSION-BEZSCALE-INTERP.value_changed TO EXPLOSION5.set_scale
ROUTE FIREWORKS.fraction_changed TO COLORINTER.set_fraction
ROUTE COLORINTER.value TO MAT2.emissiveColor